package com.example.votesystem.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

@TableName(value = "t_item")
public class TItem {
    @TableId(value = "id", type = IdType.INPUT)
    private Integer id;

    @TableField(value = "name")
    private String name;

    @TableField(value = "headUrl")
    private String headurl;

    /**
     * 分类id
     */
    @TableField(value = "contact")
    private Integer contact;

    public static final String COL_ID = "id";

    public static final String COL_NAME = "name";

    public static final String COL_HEADURL = "headUrl";

    public static final String COL_CONTACT = "contact";

    /**
     * @return id
     */
    public Integer getId() {
        return id;
    }

    /**
     * @param id
     */
    public void setId(Integer id) {
        this.id = id;
    }

    /**
     * @return name
     */
    public String getName() {
        return name;
    }

    /**
     * @param name
     */
    public void setName(String name) {
        this.name = name;
    }

    /**
     * @return headUrl
     */
    public String getHeadurl() {
        return headurl;
    }

    /**
     * @param headurl
     */
    public void setHeadurl(String headurl) {
        this.headurl = headurl;
    }

    /**
     * 获取分类id
     *
     * @return contact - 分类id
     */
    public Integer getContact() {
        return contact;
    }

    /**
     * 设置分类id
     *
     * @param contact 分类id
     */
    public void setContact(Integer contact) {
        this.contact = contact;
    }
}